﻿using IBLL;
using IDAL;
using model;

namespace BLL
{
    public class MemBLL:IMemberBLL
    {
        public MemBLL(IMemberDAL dal)
        {
            Dal = dal;
        }

        public IMemberDAL Dal { get; }
        public int Add(member m)
        {
            return Dal.Add(m);
        }

        public List<member> Show()
        {
            return Dal.Show();
        }

        public int Delete(int id)
        {
            return Dal.Delete(id);
        }

        public member Fantian(int id)
        {
            return Dal.Fantian(id);
        }

        public int Update(member m)
        {
            return Dal.Update(m);
        }
    }
}
